pub const HITLS_BASE64_CTX_BUF_LENGTH: u32 = 80;
pub const HITLS_BASE64_CTX_LENGTH: u32 = 48;
pub const BSL_BASE64_FLAGS_NO_NEWLINE: u32 = 1;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct BASE64_ControlBlock {
    _unused: [u8; 0],
}
pub type BSL_Base64Ctx = BASE64_ControlBlock;
unsafe extern "C" {
    pub fn BSL_BASE64_Encode(
        srcBuf: *const u8,
        srcBufLen: u32,
        dstBuf: *mut ::std::os::raw::c_char,
        dstBufLen: *mut u32,
    ) -> i32;
}
unsafe extern "C" {
    pub fn BSL_BASE64_Decode(
        srcBuf: *const ::std::os::raw::c_char,
        srcBufLen: u32,
        dstBuf: *mut u8,
        dstBufLen: *mut u32,
    ) -> i32;
}
unsafe extern "C" {
    pub fn BSL_BASE64_CtxNew() -> *mut BSL_Base64Ctx;
}
unsafe extern "C" {
    pub fn BSL_BASE64_CtxFree(ctx: *mut BSL_Base64Ctx);
}
unsafe extern "C" {
    pub fn BSL_BASE64_CtxClear(ctx: *mut BSL_Base64Ctx);
}
unsafe extern "C" {
    pub fn BSL_BASE64_EncodeInit(ctx: *mut BSL_Base64Ctx) -> i32;
}
unsafe extern "C" {
    pub fn BSL_BASE64_EncodeUpdate(
        ctx: *mut BSL_Base64Ctx,
        srcBuf: *const u8,
        srcBufLen: u32,
        dstBuf: *mut ::std::os::raw::c_char,
        dstBufLen: *mut u32,
    ) -> i32;
}
unsafe extern "C" {
    pub fn BSL_BASE64_EncodeFinal(
        ctx: *mut BSL_Base64Ctx,
        dstBuf: *mut ::std::os::raw::c_char,
        dstBufLen: *mut u32,
    ) -> i32;
}
unsafe extern "C" {
    pub fn BSL_BASE64_DecodeInit(ctx: *mut BSL_Base64Ctx) -> i32;
}
unsafe extern "C" {
    pub fn BSL_BASE64_DecodeUpdate(
        ctx: *mut BSL_Base64Ctx,
        srcBuf: *const ::std::os::raw::c_char,
        srcBufLen: u32,
        dstBuf: *mut u8,
        dstBufLen: *mut u32,
    ) -> i32;
}
unsafe extern "C" {
    pub fn BSL_BASE64_DecodeFinal(
        ctx: *mut BSL_Base64Ctx,
        dstBuf: *mut u8,
        dstBufLen: *mut u32,
    ) -> i32;
}
unsafe extern "C" {
    pub fn BSL_BASE64_SetFlags(ctx: *mut BSL_Base64Ctx, flags: u32) -> i32;
}
